import Vue from 'vue'
import Router from 'vue-router'
import CqView from '@/views/CqView.vue'
import JoinUs from '@/views/JoinUs.vue'
import AboutUs from '@/views/AboutUs'
import Case from '@/views/Case'
import News from '@/views/News'
import HomePage from '@/views/HomePage'
Vue.use(Router)

// const routes = [
// ]

const router = new Router({
  routes: [
    {
      path: '/',
      redirect: '/home',
      component: CqView,
      children: [
        { path: '/join', name: 'join', component: JoinUs },
        { path: '/case', name: 'case', component: Case },
        { path: '/about', name: 'about', component: AboutUs },
        { path: '/home', name: 'home', component: HomePage },
        { path: '/news', name: 'news', component: News }
      ]
    },

  ]
})

export default router